<?php


namespace app\home\model;


class ProductionPlanDetail extends Base
{
    public function craftRoute()
    {
        return $this->hasMany(CraftRoute::class,'material_dossier_id','material_dossier_id')
            ->where('status',1);
    }

    public function bom()
    {
        return $this->hasMany(Bom::class,'material_dossier_id','material_dossier_id')
            ->where('status',1);
    }
}